/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#ifndef PLUGINSVIEW_H
#define PLUGINSVIEW_H

#include <QtGui/QDialog>
#include <QVector>
#include "../plugininterfaces.h"

namespace Ui {
    class PluginsView;
}
class PluginScrollAreaWidget;

class PluginsView : public QDialog {
    Q_OBJECT
public:
    PluginsView(QWidget *parent = 0,QVector<Plugin*>* =0);
    void viewCollection();
    QWidget* getPreviewWidget();
    Plugin* getPlugin();
    ~PluginsView();

protected:
    void changeEvent(QEvent *e);

private:
    QVector<PluginScrollAreaWidget*> widgets;
    Ui::PluginsView *m_ui;
    Plugin* m_returnPlugin;
private slots:
    void returnPlugin(Plugin*);
};

#endif // PLUGINSVIEW_H
